package com.lpssfxy.controller;

import com.lpssfxy.bean.R;
import com.lpssfxy.service.ABTestRatingService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = {"AB压测接口"})
@RestController
@CrossOrigin
@RequestMapping("/abtest")
public class ABTestController {

    @Autowired
    ABTestRatingService abTestRatingService;

    @GetMapping("ratingProductByABTest")
    public R ratingProductByABTest() {
        return abTestRatingService.addRating();
    }
}
